package protocol

type Summary struct {
	Title       string `json:"title"`
	Content     int64  `json:"content"`
	Pic         string `json:"imgUrl"`
	CreatedDate string `json:"createdDate"`
}

type News struct {
	Content     string `json:"content"`
	Img         string `json:"imgUrl"`
	Title       string `json:"title"`
	PublishTime string `json:"createdDate"`
}

type Banner struct {
	Title string
	Img   string
}

type newsList struct {
	Id           string `json:"id"`
	Title        string `json:"title"`
	CoverPicture string `json:"coverPicture"`
	CreatedDate  string `json:"createdDate"`
}

type WebNewsCategoryIdList struct {
	NewsList []newsList `json:"list"`
}
type BannerList struct {
	Link  string `json:"link"`
	Img   string `json:"img"`
	Title string `json:"title"`
}

type LiveDetailProp struct {
	LiveTitle string `json:"liveTitle"`
	LiveImage string `json:"liveImage"`
	MatchId   int    `json:"matchId"`
	PlayAddr  struct {
		LdFlv string `json:"ld_flv"`
		HdFlv string `json:"hd_flv"`
	}
	AnchorDetail struct {
		HeadImageUrl string `json:"headImageUrl"`
		Nickname     string `json:"nickname"`
	} `json:"anchorDetail"`
}

type WebCategory struct {
	Name string `json:"name"`
}

type PageProps struct {
	BannerList     []BannerList   `json:"bannerList"`
	LiveDetailProp LiveDetailProp `json:"liveDetailProp"`
	NewsDetail     struct {
		News *News `json:"news"`
	} `json:"newsDetail"`
	//ActiveIndex interface{}  `json:"activeIndex"`
	WebNewsCategoryIdList WebNewsCategoryIdList `json:"webNewsCategoryIdList"`
	//WebNewsCategoryIdList []WebNewsCategoryIdList `json:"webNewsCategoryIdList"`
}

type Props struct {
	PageProps PageProps `json:"pageProps"`
}

type MainProps struct {
	Props Props `json:"props"`
}

type Match struct {
	LeagueName     string `json:"leagueName"`     //联赛
	LeagueLogo     string `json:"leagueLogo"`     //联赛logo
	MatchId        int    `json:"matchId"`        //赛事id
	MatchTime      int64  `json:"matchTime"`      //赛事时间
	HostTeamName   string `json:"hostTeamName"`   //主队名
	HostTeamLogo   string `json:"hostTeamLogo"`   //主队logo
	GuestTeamName  string `json:"guestTeamName"`  //客队名
	GuestTeamLogo  string `json:"guestTeamLogo"`  //客队logo
	HostTeamScore  int    `json:"hostTeamScore"`  //主队得分
	GuestTeamScore int    `json:"guestTeamScore"` //客队得分
	StatusLable    string `json:"statusLable"`    //上半场 下半场
	TimePlayed     int    `json:"timePlayed"`     //进行时间
}

type MatchRespData struct {
	Data struct {
		Going    []*Match `json:"going"`    //进行中的
		Uncoming []*Match `json:"uncoming"` //未开赛的
		Finished []*Match `json:"finished"` //结束的
	} `json:"data"`
}
